﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace X9Tech.Dialogs
{
    public partial class SetupDialog : Form
    {
        public SetupDialog()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            if (this.txtTag.Text.Length == 0)
            {
                MessageBox.Show("Please provide a hashtag.", "Hashtag Required");
                return;
            }

            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        public string HashTagValue
        {
            get { return this.txtTag.Text; }
            set { this.txtTag.Text = value; }
        }

        public string BackgroundImagePath
        {
            get { return this.txtBGImagePath.Text; }
            set { this.txtBGImagePath.Text = value; }
        }

        private void SetupDialog_Load(object sender, EventArgs e)
        {
            this.txtTag.Focus();
        }
    }
}
